import request from '@/utils/request'

// 查询楼栋列表
export function listManage_building(query) {
  return request({
    url: '/manage/manage_building/list',
    method: 'get',
    params: query
  })
}

// 查询楼栋详细
export function getManage_building(buildingId) {
  return request({
    url: '/manage/manage_building/' + buildingId,
    method: 'get'
  })
}

// 新增楼栋
export function addManage_building(data) {
  return request({
    url: '/manage/manage_building',
    method: 'post',
    data: data
  })
}

// 修改楼栋
export function updateManage_building(data) {
  return request({
    url: '/manage/manage_building',
    method: 'put',
    data: data
  })
}

// 删除楼栋
export function delManage_building(buildingId) {
  return request({
    url: '/manage/manage_building/' + buildingId,
    method: 'delete'
  })
}
